home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / sun3.md / sys / machSignal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-20  |  993 b   |  30 lines

  1. /*
  2.  * Copyright (c) 1991, Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)machSignal.h    7.3 (Berkeley) 5/14/88
  7.  * $Header: /sprite/src/lib/include/RCS/signal.h,v 1.10 90/12/18 18:39:43 kupfer Exp $
  8.  */
  9.  
  10. #ifndef _SYS_SIGNAL
  11. #define _SYS_SIGNAL
  12.  
  13. /*
  14.  * Information pushed on stack when a signal is delivered.
  15.  * This is used by the kernel to restore state following
  16.  * execution of the signal handler.  On some systems it is also made
  17.  * available to the handler to allow it to properly restore state if a
  18.  * non-standard exit is performed.  However, user programs should not
  19.  * rely on having access to this information.
  20.  */
  21. struct    sigcontext {
  22.     int    sc_onstack;        /* sigstack state to restore */
  23.     int    sc_mask;        /* signal mask to restore */
  24.     int    sc_sp;            /* sp to restore */
  25.     int    sc_pc;            /* pc to restore */
  26.     int    sc_ps;            /* ps to restore */
  27. };
  28.  
  29. #endif /* _SYS_SIGNAL */
  30.